package com.katze.boot.common.config.actuator;

import com.katze.common.env.AppEnvironment;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 说  明：
 * 作  者：zf.zeng
 * 日  期：2022-11-14 (星期一)
 **/
//todo 程序监控有待完善
@Configuration
public class MicrometerActuatorConfiguration {


    @Bean
    public MeterRegistryCustomizer<MeterRegistry> configurer() {
        return registry -> registry.config().commonTags("application", AppEnvironment.APP_NAME.getValue());
    }
}
